/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 停车场详情 GET /api/parking_lot/detail */
export async function detailUsingGet1({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.detailUsingGET1Params;
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResulttingchechangxiangqingVo>(
    '/api/parking_lot/detail',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 根据经纬度查找停车场 GET /api/parking_lot/find */
export async function findUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.findUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultPageResulttingchechangliebiaoVo>(
    '/api/parking_lot/find',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 停车场列表 GET /api/parking_lot/list */
export async function listUsingGet1({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.listUsingGET1Params;
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultPageResulttingchechangliebiaoVo>(
    '/api/parking_lot/list',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
